package a.j;

import a.c.e;

public class sf
  extends gf
{
  double m;
  double G;
  e H;
  boolean I;
  private static final int J = 0;
  private static final int K = 1;
  private static final int L = 2;
  private int M = 2;
  public static int N;
  
  public void mousePressedLeft(double paramDouble1, double paramDouble2)
  {
    this.m = paramDouble1;
    this.G = paramDouble2;
  }
  
  private boolean b(double paramDouble1, double paramDouble2)
  {
    boolean bool = ld.E;
    double d1 = this.m - paramDouble1;
    double d2 = this.G - paramDouble2;
    d1 *= d1;
    d2 *= d2;
    if (!bool) {
      if (d1 + d2 > 0.0D) {
        if (bool) {
          break label71;
        }
      }
    }
    label71:
    return Math.sqrt(d1 + d2) < 2.0D;
  }
  
  private synchronized void v()
  {
    try
    {
      this.M = 2;
      notifyAll();
    }
    catch (Exception localException)
    {
      localException.printStackTrace(System.err);
    }
  }
  
  public synchronized void mouseReleasedLeft(double paramDouble1, double paramDouble2)
  {
    boolean bool = ld.E;
    if ((bool) || (b(paramDouble1, paramDouble2)))
    {
      if (!bool) {}
      switch (this.M)
      {
      case 1: 
        v();
        if (!bool) {
          if (!ld.D) {
            return;
          }
        }
      case 0: 
        this.H = new sc(this.i, paramDouble1, paramDouble2, true, 4).m();
        if ((bool) || (this.H != null)) {
          v();
        }
        break;
      }
    }
  }
  
  public synchronized e w()
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    this.M = 0;
    do
    {
      do
      {
        for (;;)
        {
          if (this.M == 2) {
            break label70;
          }
          try
          {
            if ((bool2) || (bool1)) {
              break label71;
            }
            wait();
          }
          catch (Exception localException)
          {
            System.out.println("bummer! getClickedNode. " + localException);
          }
        }
      } while (bool2);
    } while (!bool1);
    label70:
    label71:
    return this.H;
  }
  
  public synchronized void x()
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    this.M = 1;
    do
    {
      do
      {
        for (;;)
        {
          if (this.M == 2) {
            return;
          }
          try
          {
            wait();
          }
          catch (Exception localException)
          {
            localException.printStackTrace(System.err);
          }
        }
      } while (bool2);
    } while (!bool1);
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.j.sf

 * JD-Core Version:    0.7.0.1

 */